package com.medium.house.utils;


import com.medium.house.constant.Constant;

import java.math.BigDecimal;


public class CalculateUtil {

    public static long mul(BigDecimal num1, long num2) {
    	return num1.multiply(new BigDecimal(num2)).longValue();
    }
    
    public static BigDecimal divide(long num1, long num2) {
    	return new BigDecimal(num1).divide(new BigDecimal(num2));
    }
    
    public static void main(String[] args) {
    	System.out.println(divide(250L, Constant.HUNDRED_THOUSAND));
    }

}
